package com.aaa.project;

import org.junit.Test;



public class JavaTest {
    /*数组的排序*/
    @Test
    public  void test1(){
          int [] arr={4,5,1,9,7,8};
         Meth.sort(arr);
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }

    }
    /*拼接*/
    @Test
    public  void test2 (){
        int [] arr = {1,5,6,4};
        String b = Meth.myToString(arr);
        System.out.println(b);
    }/*查询位置*/
    @Test
    public  void test3(){
        int [] arr ={8,5,9,4,1};
        int b = Meth.indexof(arr,1);
        System.out.println(b);
    }
    /*最大值*/
    @Test
    public  void test4(){
        int [] arr = {5,6,7,8,9};
        Meth.Max(arr);

          int b = Meth.Max(arr);
        System.out.println(b);

    }
    @Test
    public void test5(){
        int [] arr ={4,5,6,8,5,2};
        int [] arr1={4,5,6,8,5,2};
        String b = Meth.yizhi(arr,arr1);
        System.out.println(b);
    }
}
